package com.example.livereplay.common.model.enity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("info_place")
@Schema(name = "Place", description = "场地")
public class Place {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @Schema(description = "场地名称")
    private String name;

    @Schema(description = "所属赛事id")
    private String tournamentId;

    @Schema(description = "权重")
    private Integer weight;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Long createTime;

    @Schema(description = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Long updateTime;

    @Schema(description = "创建者")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @Schema(description = "更新者")
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;

    @Schema(description = "版本")
    @Version
    private Long version;

    @Schema(description = "额外信息")
    private String extra;

    @Schema(description = "租户id")
    private String tenantId;
}
